﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.ManagerInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int MId=(Convert.ToInt32(strid));
					ShowInfo(MId);
				}
			}
		}
		
	private void ShowInfo(int MId)
	{
		Maticsoft.BLL.ManagerInfo bll=new Maticsoft.BLL.ManagerInfo();
		Maticsoft.Model.ManagerInfo model=bll.GetModel(MId);
		this.lblMId.Text=model.MId.ToString();
		this.lblMName.Text=model.MName;
		this.lblMPwd.Text=model.MPwd;
		this.lblMType.Text=model.MType.ToString();

	}


    }
}
